package com.github.chirspan.xaas.cfg.dubbo.service;

import com.github.chirspan.xaas.cfg.service.ICfgConfigService;
import com.github.chirspan.xaas.dubbo.server.IRemoteCfgConfigService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @className: RemoteCfgConfigService
 * @description: <p></p>
 * @author: chenpan
 * @date: 2021/8/20 18:48
 **/
@DubboService
public class RemoteCfgConfigService implements IRemoteCfgConfigService {

    @Autowired
    private ICfgConfigService configService;

    @Override
    public String getConfig(String appCode, String configCode) {
        return configService.getConfigByAppAndCode(appCode, configCode);
    }
}
